﻿-- =============================================
-- Logins.sql
-- =============================================
USE [master]

IF NOT EXISTS(SELECT * from syslogins WHERE name='$(WindowsAccount)') 
BEGIN
	CREATE LOGIN [$(WindowsAccount)] FROM WINDOWS WITH DEFAULT_DATABASE = [$(DatabaseName)]
END

USE [$(DatabaseName)]
GO